Skip to content

feat(monitor): add search-target support to monitor create#142

Merged
developersdigest merged 5 commits into
mainfrom
search-monitor
Jun 26, 2026
Merged

feat(monitor): add search-target support to monitor create#142
developersdigest merged 5 commits into
mainfrom
search-monitor

Conversation

@developersdigest

Copy link
Copy Markdown
Member

Search monitors (type:"search") are implemented in the API but undocumented. Add --queries/--search-window/--max-results/--include-domains/--exclude-domains flags, build the search target in buildCreateBody, and require --goal for search monitors (the API mandates a non-empty goal). Includes tests.

Search monitors (type:"search") are implemented in the API but undocumented.
Add --queries/--search-window/--max-results/--include-domains/--exclude-domains
flags, build the search target in buildCreateBody, and require --goal for search
monitors (the API mandates a non-empty goal). Includes tests.
Clarify messaging by changing references from 'search monitors' to 'web monitors'. Update the thrown error in buildCreateBody to "--goal is required for web monitors (--queries)" and adjust the corresponding unit test to expect the new wording. This makes it clearer that a goal is required when creating web monitors with queries (the API auto-enables the AI judge). Files modified: src/commands/monitor.ts, src/__tests__/commands/monitor.test.ts.
@developersdigest developersdigest merged commit 11e9d6e into main Jun 26, 2026
7 checks passed
@developersdigest developersdigest deleted the search-monitor branch June 26, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant